'use strict';
/**
 * Created by hedingxin on 2019-03-05
 */
var browserSync = require('browser-sync');
browserSync({
  server: {
    routes: {// /en/page/index.html
    },
    middleware: [
      function(req, res, next) {
        if (req.url == '/') {
          res.writeHead(301, {Location: 'en/page/layout.html'});
          return res.end();
        }
        next();
      },
    ],
  },
  startPath: 'en/page/layout.html',
  port: 8001,
  files: ['./en'],
	host: '192.168.9.8',//自己的ip
   //host: '10.168.9',//自己的ip
});
